"""
sana.2022.25.08
"""
import random
from datetime import date, datetime, timedelta
#import local
date
today = date.today()
print(today)            # 2022-08-25
print(today.day)        # 25
print(today.month)      # 8
print(today.year)       # 2022
print(today.weekday())  # 3
print('<<<<<>>>>>')
datetime
now = datetime.now()    
now1 = datetime.today() 

print(now)              # 2022-08-25 12:01:16.595881
print(now.day)          # 25 
print(now.month)        # 8
print(now.year)         # 2022
print(now.weekday)      # <built-in method weekday of datet ime.datetime object at 0x7f0fe216fe70> 
print(now.hour)         # 12
print(now.minute)       # 12
print(now.second)       # 56
print('<<<<<<>>>>>>')
days = ['пн,dushanba', 'вт,seshanba', 'ср,chorshanba', 'чт,payshanba', 'juma', 'shanba', 'yakshanba']
print(days[now.weekday()])  # payshanba

now =datetime.now()         # 2022-08-25 12:17:42.701145
print(now)
#
print(now.strftime('%a'))   # Thu
print(now.strftime('%A'))   # Thusday
#
print('<<>>')
print(f'Дата-sana: {now.strftime("%A, %D %B %Y")}')  # Thusday, 08/25/22 Aug 
print(f'Дата-sana: {now.strftime("%a, %d %b %y")}')  # ust 2022
#
print(f'Время-vaqt: {now.strftime("%H:%M:%S")}')  #Время-vaqt: 12:17:42
#
print('<<<>>>')
print(now.strftime('%c'))  #Thu, 25 Aug 22
print(now.strftime('%x'))  # 08/25/22
print(now.strftime('%X'))  # 12:17:42
print('<<<<>>>>')
#
now = datetime.today()
print(now.strftime('%c'))      # Thu Aug 25 12:27:26 2022
d1 = now + timedelta(days = 1, hours = 2)
print(d1.strftime('%C'))
print(d1.strftime('%c'))       # Fri Aug 26 14:27:26 2022
d2 = now - timedelta(days = 1, hours = 2)
print(d2.strftime('%C'))
print(d2.strftime('%c'))       # Wed Aug 24 10:27:26 2022
#
##

x = random.randint(1, 100)
user_num = 0

while True:
    user_num = int(input(' 1 dan, 100 gacha bolgan sonlarni kiriting: '))
    cnt += 1
    if user_num == x:
        print(f'Sonni topdingiz! Urunishlar soni {cnt} shuncha')
        print("""
                _______________
                |             |
               @|   0     0   |@
                |      ^      |
                |   .     .   |
                |    `...`    |
                |_____________|

                """)
        if input('Yana o\'naymizmi? "Yo|Ha": ') == 'Ha':
            x = random.randint(1, 100)
            cnt = 0
        else:
            print('Tashakkur!')
            break
    elif user_num > x:
        print('Mening raqmim __ dan kam')
    else:
        print('Mening raqmim __ dan katta')
